<?php

// +----------------------------------------------------------------------
// | EasyAdmin
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议  https://mit-license.org
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------

namespace app\model\api\lol;

use laytp\BaseModel;
use think\model\concern\SoftDelete;

class LolHero extends BaseModel
{
    use SoftDelete;

    public function relation(){
        return $this->hasMany("LolHeroRelation","hero_id","id")->order("sort asc");
    }

    public function team(){
        return $this->hasMany("LolHeroTeam","hero_id","id")->order("sort asc");
    }
}